import request from '@/utils/request'

// 部门列表信息
export const getTexture = () => request.get('/company/department')
// 部门负责人
export const getSimple = () => request.get('/sys/user/simple')
// 增加
export const addDepartment = data => request.post('/company/department', data)
// 获取部门负责人详细信息
export const getDepartment = id => request.get(`/company/department/${id}`)
// 编辑
export const updateDepartment = data => request.put(`/company/department/${data.id}`, data)
// 删除
export const delDepartment = id => request.delete(`/company/department/${id}`)
